home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-06-05 | 530 b | 31 lines |
- # C news libbsd42 makefile
- INCLUDE = ../include
- DEFINES=-I$(INCLUDE)
- COPTS=-O # -g -p
- CFLAGS=$(COPTS) $(DEFINES)
- LINTFLAGS=-hau $(DEFINES)
- # workaround for System V make bug
- SHELL = /bin/sh
-
- SRCS = clsexec.c fopenexcl.c getcwd.c
- OBJS = clsexec.o fopenexcl.o getcwd.o
-
- # RANLIB is ranlib on non-USG systems, echo on USG systems
- RANLIB=ranlib
-
- u: $(OBJS)
- ar ruv ../libcnews.a $(OBJS)
-
- all: $(OBJS)
-
- libbsd42.a: $(SRCS)
- $(CC) $(CFLAGS) -c $?
- ar ru $@ *.o
- rm *.o
- $(RANLIB) $@
- lint:
- lint $(LINTFLAGS) $(SRCS)
-
- clean:
- rm -f *.o
-